/**
 * Copyright (c) 2024-2025 National Fundamental Software of China Co., Ltd.
 *
 * You should have find a copy of NFSChina License. If not, please contact us
 * by email <os_support@nfschina>
 *
**/

#include "agreementwidget.h"
#include <QLocale>

#include <KPluginFactory>

K_PLUGIN_CLASS_WITH_JSON(AgreementWidget, "kcm_agreement.json")

AgreementWidget::AgreementWidget(QWidget *parent, const QVariantList &args) :
    KCModule(parent, args)
{
    setupUi(this);

    QString localeStr = QLocale::system().name();
    if(localeStr.startsWith(QStringLiteral("zh")))
    {
        QString htmlText = R"(
        <html>
        <body>
<p style = 'text-align:center;'>中科方德软件许可及服务协议</p>
<p></p>
<p>首部及导言</p>
<p>欢迎使用中科方德软件及服务！</p>
<p>为使用中科方德软件（以下简称“本软件”）及服务，请您阅读并遵守《中科方德软件许可及服务协议》（以下简称“本协议”）。请您务必审慎阅读、充分理解各条款内容，特别是免除或者限制责任的条款，以及开通或使用某项服务的单独协议，并选择接受或不接受。限制、免责条款可能以加粗形式提示您注意。您的下载、安装、使用、登陆等行为即视为您已阅读并同意本协议的约束。</p>
<p>本软件受《中华人民共和国著作权法》及国际著作权条约和其它知识产权法和条约的保护。对于本软件，中科方德仅授予您一项不可转让及非排他性的许可，而不出售。请您在确认充分阅读本协议字体加粗条款，明确理解了该等字体加粗条款的前提下使用本软件。如果您对本协议及/或本软件有任何问题、疑惑，请随时联系我们，我们为您提供了多种反馈渠道，希望为您提供满意的解决方案：</p>
<p>1.人工客服通道：您可以拨打我们的客服热线：400-118-5115（工作日）；</p>
<p>2.专设的邮件通道：我们专门设立了os_support@nfschina.com邮箱，您可以通过发送电子邮件至该邮箱与我们联系。</p>
<p>本协议是您与中科方德之间有关本软件的法律协议。本软件包括随附的计算机软件，并可能包括计算机软件相关载体、相关电子文档或印刷材料。除非另附单独的最终用户许可协议或使用条件说明，否则本软件还包括在您获得本软件后由中科方德不时提供的任何本软件升级版本、修正程序、修订、附加成分和补充内容。</p>
<p>本协议将帮助您了解以下内容：</p>
<p></p>
<p>第一条 术语解释</p>
<p>第二条 您的权利</p>
<p>第三条 您的义务</p>
<p>第四条 本软件的替换、修改和升级</p>
<p>第五条 知识产权声明</p>
<p>第六条 第三方产品和服务</p>
<p>第七条 不允诺担保</p>
<p>第八条 责任有限</p>
<p>第九条 许可终止</p>
<p>第十条 适用、管辖法律及条款效力</p>
<p>第十一条 特别提示</p>
<p>第十二条 其他</p>
<p></p>
<p>第一条 术语解释</p>
<p>以下术语的解释是为了您更加清晰地了解本协议的内容：</p>
<p>1.1“中科方德”或“我们”：是指中科方德软件有限公司及/或其直接或间接持股50%以上的公司。具体到本协议提及的每个“中科方德”是指哪一/些公司，中科方德软件有限公司将结合您的具体情况判断确定。</p>
<p>1.2“您”或“用户”：指享有合法授权，使用本软件的用户。</p>
<p>1.3“法人或其他组织”：指向中科方德或中科方德的代理商、经销商、合作伙伴等付费购买使用本软件使用许可授权，并将本软件使用许可授权分配给用户使用的主体，包括但不限于法人、政府机关、公司、企事业单位、其他组织等。</p>
<p>1.4“中国大陆地区”：仅为本协议之目的，指中华人民共和国范围内香港特别行政区、澳门特别行政区以及台湾地区以外的其他地区。</p>
<p></p>
<p>第二条 您的权利</p>
<p>2.1在您通过合法途径获得中科方德出具的授权文件以证明您有权在计算机上使用本软件，并接受本协议及您与中科方德签订的其他协议（如有）各项条款约束的前提下，中科方德将本软件在大陆地区的非专有的使用权授予您。您可以：</p>
<p>2.1.1在计算机上安装、使用、显示、运行本软件。</p>
<p>2.1.2为了防止介质损坏而制作备份复制品。这些备份复制品不得通过任何未经授权的方式提供给他人使用，在您丧失本软件使用许可授权时，请您将备份复制品销毁。</p>
<p>2.2就您获得合法使用权的本软件，中科方德将向您提供以下支持服务：</p>
<p>2.2.1在中科方德官网、附随用户手册或其它文档电子或印刷材料（如有）中，中科方德明示将为您提供支持服务，我们将依照该官网、用户手册或其它电子文档或印刷材料（如有）中所述的各项政策和计划为您提供与本软件有关的支持服务（“支持服务”）。</p>
<p>2.2.2提供给您作为支持服务（如有）的一部分的任何附加软件代码（如有）应被视为本软件的一部分，并须遵照本协议中的各项条款。 </p>
<p></p>
<p>第三条 您的义务</p>
<p>除非法律允许或中科方德书面同意，您在使用本软件过程中不得从事下列行为：</p>
<p>3.1在本协议规定的条款之外，使用、复制、修改本软件或其中的任一部分或以任何方式转让或向第三方提供（包括但不限于有偿、无偿、单独、与其他软、硬件一并转让）本软件或其中的任一部分。</p>
<p>3.2分拆本软件，将本软件各组件分开放在超过一台计算机上使用。</p>
<p>3.3对本软件进行反向工程、反向编译或反汇编，以及试图进行任何获得本软件源代码的访问或行为。 </p>
<p>3.4对中科方德拥有知识产权的内容进行出租、出借、出售、再许可、分发、修改、链接、转载、汇编、发表、出版、建立镜像站点等。</p>
<p>3.5对本软件或者本软件运行过程中释放到任何终端内存中的数据、软件运行过程中客户端与服务器端的交互数据，以及本软件运行所必需的系统数据，进行复制、修改、增加、删除、挂接运行或创作任何衍生作品，形式包括但不限于使用插件、外挂或非中科方德授权的第三方工具/服务接入本软件和相关系统。</p>
<p>3.6通过修改或伪造软件运行中的指令、数据，增加、删减、变动软件的功能或运行效果，或者将用于上述用途的软件、方法进行运营或向公众传播，无论这些行为是否为商业目的。</p>
<p>3.7通过非中科方德开发、授权的第三方软件、插件、外挂、系统，登录或使用中科方德软件及服务，或制作、发布、传播上述工具。</p>
<p>3.8自行或者授权他人、第三方软件对本软件及其组件、模块、数据进行干扰。</p>
<p>3.9删除本软件及其副本上包含的版权标识。</p>
<p>3.10其他未经中科方德明示授权的行为。</p>
<p></p>
<p>第四条 本软件的替换、修改和升级</p>
<p>4.1为了增进用户体验、完善服务内容，中科方德将不断努力开发本软件的新功能，并不时为您提供本软件更新（这些更新可能会采取软件替换、修改、版本升级等形式）。</p>
<p>4.2如果您为本软件开启了“自动下载和安装升级包，过程中不需要给我任何提示”功能，则中科方德将有权不经向您特别通知而将本软件的更新版本自动安装在您的设备上。若您不希望本软件自动安装更新，请您不要开启该功能或在开启后自行关闭该功能。</p>
<p>4.3中科方德将随时通过提前向您公告（包括但不限于本软件客户端弹出页面、您点击本软件客户端“检查更新”按钮后的显示或本软件官方网站）的方式为您提供本软件的更新版本以替换、修改或使本软件升级。</p>
<p>4.4本软件更新版本发布后，中科方德可能不会再向旧版本软件持续提供支持服务，为了保障您的使用体验及服务感受，我们建议您随时核对并及时下载本软件的最新版本。</p>
<p>4.5您可自行选择接受（包括您设定对本软件自动安装更新的情况）中科方德为您提供的本软件的更新版本以替换、修改或升级本软件。一旦您下载本软件的更新版本，则表明（a）您接受本软件的更新版本，并认可更新版本不一定包括旧版本（指本软件的更新版本发布之前的版本）的全部功能，中科方德保留因业务发展需要，单方面对本软件的部分功能效果进行改变或进行限制的权利；且（b）您承诺已满足且同意以下本软件更新版本的全部使用条件：（i）更新版本须受到本协议条款的制约，若本协议被随附更新版本的另外一份协议取代，则更新版本须受该协议制约；（ii）您对本软件的旧版本的使用权将被终止。</p>
<p></p>
<p>第五条 知识产权声明</p>
<p>5.1中科方德是本软件的知识产权权利人。本软件的一切著作权、商标（申请）权、专利（申请）权、商业秘密等知识产权，以及与本软件相关的所有信息内容（包括但不限于本软件中所含的任何源代码、文字、图片、音频、视频、图表、界面设计、版面框架、有关数据或电子文档和附加程序等）、随附的电子文档或印刷材料及本软件任何副本等，均受中华人民共和国法律法规和相应的国际条约保护，中科方德享有上述知识产权，但相关权利人依照法律规定应享有的权利除外。</p>
<p>5.2未经中科方德或相关权利人书面同意，除根据本协议约定制作备份复制品外，您不得为任何商业或非商业目的自行或许可任何第三方实施、利用、转让上述知识产权。如您根据本协议约定制作备份复制品，请为每一复制品均复制版权声明。</p>
<p>5.3除另有明确约定外，本协议不授予您有关本软件的任何所有权或知识产权。除在此明确授予的权利外，中科方德没有授予您（个人或单一实体）任何其他许可，不论是明示的，还是默示的。中科方德未授权您（个人或单一实体）对软件进行任何后续开发和改进，如果需要，这些后续开发和改进应经中科方德书面同意后进行，并且所产生成果的权利及权益归中科方德所有。</p>
<p>5.4您使用本软件及服务过程中上传、发布的全部内容，均不会因为上传、发布行为发生知识产权等权利的转移。与此同时，您理解并同意中科方德为实现产品目的，对您发布的特定公开非保密内容在法律允许的范围内进行使用，包括但不限于予以存储、供有关用户获取及再次使用等。</p>
<p></p>
<p>第六条 第三方产品和服务</p>
<p>6.1本软件可能会使用第三方软件或技术（包括本软件可能使用的开源代码和公共领域代码等，下同）。</p>
<p>6.1.1中科方德将按照相关法规或约定，对相关的协议或其他文件，通过本协议附件、在本软件安装包特定文件夹中打包等形式进行展示，可能会以“软件使用许可协议”、“授权协议”、“开源代码许可证”、“许可使用协议”或其他形式来表达、前述通过各种形式展现的相关协议、其他文件及网页，均是本协议不可分割的组成部分，与本协议具有同等的法律效力，您应当遵守这些要求。如果您没有遵守这些要求，该第三方或者国家机关可能会对您提起诉讼、罚款或采取其他制裁措施，并要求中科方德予以协助，您应当自行承担法律责任。</p>
<p>6.1.2该等开源代码包作为您获得合法授权之本软件之组成部分，其授权使用范围及权利限制条款适用本协议，如该等开源代码包有其独立的最终用户许可协议，则该等开源代码包的授权使用范围及权利限制条款同时适用其独立的最终用户许可协议，鉴于本协议有可能与开源代码包独立的最终用户许可协议条款存在不一致之处，在此特别说明，当两份许可协议存在不一致时，则优先适用用户许可更为严格者。</p>
<p>6.1.3如因本软件使用的第三方软件或技术引发的任何纠纷，应由该第三方负责解决，中科方德对第三方软件或技术均不承担任何保证及责任，亦不提供客服支持。若您需要获取支持，请与第三方联系。</p>
<p>6.2您在使用本软件或要求中科方德提供特定服务时，本软件可能会调用第三方系统或者通过第三方支持用户的使用或访问，使用或访问的结果由该第三方提供，中科方德不保证通过第三方提供服务及内容的安全性、准确性、有效性及其他不确定的风险，由此若引发的任何争议及损害，与中科方德无关，中科方德不承担任何责任。我们已使用符合业界标准的安全防护措施保护第三方开发者和/或终端用户提供的个人信息，防止数据遭到未经授权的访问、公开披露、使用、修改、损毁、泄漏或丢失，我们也会努力要求这些主体对您的个人信息采取保护措施，建议您与他们联系以获得关于他们的隐私权政策的详细情况。</p>
<p>6.3第三方服务提供者可以通过本软件向您提供产品或者服务，在此过程中，第三方服务提供者可能会收集、使用和存储您的相关数据或信息，中科方德通过与第三方服务提供者签署的有关协议、相关规范以及合理的产品流程设计，严格要求第三方服务提供者获取您的任何数据均应遵守相关法律法规的规定，必须事先获得您的明确同意，采取必要的数据保护措施，且仅为产品或服务之目的合理使用您的相关数据，向您提供修改或删除自己数据的方式，并在停止服务时必须删除全部数据等，尽最大可能保障您的数据和隐私不受侵害。您在接受或使用第三方产品或服务前应充分了解第三方产品或服务的条款及政策。如果您发现有第三方服务提供者存有相关违法违规行为，可以向我们投诉，我们将查实后协助处理。</p>
<p>6.4您理解并同意，中科方德有权决定将本软件作商业用途，包括但不限于开发、使用本软件的部分服务为第三方作推广等，中科方德承诺在推广过程中严格按照本协议约定保护您的个人信息，同时您亦可以根据系统设置选择屏蔽、拒绝接收相关推广信息。</p>
<p></p>
<p>第七条 不允诺担保</p>
<p>7.1本协议所述明示担保，为担保的全部内容。在适用法律所允许的最大范围内，中科方德及其供应商提供的本软件和支持服务（如有）均为按现状及包含所有瑕疵状况下提供，不允诺其它不论是明示的、暗示的任何保证和担保：包括但不限于质量、性能、本软件对特殊应用目的适销性或适应性，反应的精确性，结果的完整性，不含漏洞或瑕疵或者不侵犯第三方权利的保证。</p>
<p>7.2本软件在一定条件、通常的标准下能够正常安装、使用。除非有特别声明，中科方德不保证本软件及其功能适合使用者的设备，不保证本软件所包含的功能或服务会符合您的要求，也不保证软件和服务将免于任何错误或将提供连续持久的服务，并不保证本软件将兼容任何第三方软件或者第三方服务。</p>
<p>7.3中科方德不担保也不保证：对服务、软件或硬件的使用不会发生中断，对服务、软件或硬件的使用符合监管要求，对服务、软件或硬件的使用不出现错误，以及中科方德将修正所有软件错误。</p>
<p></p>
<p>第八条 责任有限</p>
<p>8.1在适用法律所允许的最大范围内，中科方德或其供应商不就您因使用或不能使用本软件所引起的或有关的任何间接的、意外的、直接的、特殊的、惩罚性的或其它任何损害（包括但不限于财产损坏而造成的损害，因利润损失、数据损失、营业中断、计算机瘫痪或故障、商业信息的遗失而造成的损害，因疏忽而造成的损害，或因任何金钱上的损失或任何其它损失而造成的损害）承担赔偿责任,但因中科方德或其供应商的故意或重大过失造成您的财产损失的除外。</p>
<p>8.2由于您的主观及客观原因而不能正常安装、使用及卸载以及在其他过程中出现的任何问题，中科方德对此不承担任何责任，无论这种损害的造成与本软件及服务有任何关联；对因为意外事故、滥用、错误使用、擅自修改所引起的软件使用问题，中科方德不承担任何责任。</p>
<p></p>
<p>第九条 许可终止</p>
<p>如您未遵守本协议的各项条款和条件，中科方德可终止本软件许可，届时请您立即卸载本软件、销毁附随的文档电子或印刷材料，并赔偿因您违反本协议导致的中科方德遭受的损失。 </p>
<p></p>
<p>第十条 适用、管辖法律及条款效力</p>
<p>10.1本协议的订立、执行和解释及争议的解决均应适用中国大陆法律。</p>
<p>10.2如您与中科方德就本协议内容或其执行发生任何争议，双方应进行友好协商；协商不成时，任何一方均可向中科方德住所地有管辖权的人民法院提起诉讼。</p>
<p>10.3本协议的各项条款具有可分割性，如果某一条款被适用法律认定为无效，则其他条款不受影响，应继续有效并执行。</p>
<p></p>
<p>第十一条 特别提示</p>
<p>11.1请您仔细阅读本软件的隐私政策，即《中科方德隐私保护政策》的内容。建议您关注本软件的升级或更改，以随时了解该政策是否发生修改以及修改后的内容。</p>
<p>11.2请您知悉，若您未额外向中科方德付费购买增值服务或未单独付费向中科方德购买具有特定功能的插件，本软件的某些功能将会全部或部分受限。中科方德愿意尽最大努力通过本软件为您提供更多、更优质的功能。尽管中科方德向您提供本软件的现有功能（简称“现有功能”），但中科方德未来有可能就本软件的一个替换或修改版本或任何升级版本的任何新增、替换或附加功能的全部或部分（简称“收费功能”）向您收取费用，具体资费政策以中科方德届时公布内容为准，届时您可自行选择是否接受中科方德提供的本软件的收费功能，如您选择接受，则您应按照中科方德届时制定的收费政策支付相关费用。如果中科方德针对本软件的任何收费功能有任何随附的协议或条款，则您在选择接受该收费功能时，需先行同意此等协议或条款，且此等协议或条款将视为对本协议内容之补充，如有冲突，此等协议或条款将优先适用。</p>
<p>11.3另外提醒您注意，本协议之约定有时可能会更改（包括但不限于直接在本协议基础上对本协议现有条款的修改、变更、替换、增加、删除以及以补充协议等方式对本协议现有条款进行修改、变更、替换、增加、删除），本协议一旦发生更改，将会在向您提供的本软件的任何替换版本或修改版本或升级版本的安装包里附带一份本协议的更改内容及/或更改后的本协议的全部内容或能够显示前述内容的网址链接，一旦您成功安装这类替换、修改或升级版本的安装包，即表明您已阅读、知悉并同意更改后的本协议的全部内容。在您需登录网页阅读网页上显示的本协议内容或本协议的修改内容时，请您确保您处于联网状态且能够完整阅读本协议或本协议的修改内容的全部条款，任何时候您均不得以您未实际阅读本协议或本协议的更改内容（包括但不限于因您不能联网或未实际登录相关网页而未阅读本协议或本协议的更改内容）为由拒绝认可本协议或本协议的更改内容对您产生的法律约束力以及合同效力。</p>
<p>11.4在您或分配给您使用本软件的法人或其他组织未能以下述任一方式获得本软件的合法使用授权前，即便您已阅读并同意接受本协议各项条款的约束，您依然无权将本软件安装在您的计算机上，或以其他任何方式使用本软件：(a)从中科方德直接获得本软件的合法使用授权；(b)通过中科方德授权的经销商、分销商、代理商、零售商、应用商店等获得本软件的合法使用授权；(c)从有权进行转授权的第三方获得本软件的合法使用授权。</p>
<p>无论您以何种方式获得本软件的合法使用授权，您在安装、使用本软件时均需严格按照您或分配给您使用本软件的法人或其他组织与中科方德签订的书面协议（如有）、中科方德为证明您有权使用本软件而向您或分配给您使用本软件的法人或其他组织发放的授权文件（如有）及本协议中约定之授权许可范围、授权许可期限（如有）以及授权使用目的使用本软件。若上述文件与本协议中约定的内容不一致，则优先适用顺序为：您或分配给您使用本软件的法人或其他组织与中科方德签订的书面协议（如有）、中科方德为证明您有权使用本软件而向您或分配给您使用本软件的法人或其他组织发放的授权文件（如有）、本协议。
<p>若您或分配给您使用本软件的法人或其他组织通过中科方德授权的经销商、分销商、代理商、零售商、应用商店等获得本软件的合法使用授权时，相关方对本软件的授权政策/期限、服务内容/期限等承诺未经中科方德书面确认的，则该等约定不能约束中科方德。</p>
<p>11.5若您获得的本软件附带“授权期限”，在“授权期限”届满后，中科方德有权自行决定终止本软件授权或将本软件转换为功能受限版本（功能受限版本指限制部分功能的本软件），具体本软件的何种功能将被限制由中科方德届时自行决定并有权随时变更调整。若中科方德决定终止本软件的授权，则自本软件授权被终止之日起，除非您或分配给您使用本软件的法人或其他组织另行付费获得本软件的合法授权，否则您不得再以任何方式继续使用本软件；若中科方德决定将本软件转换为功能受限版本，则中科方德对此功能受限版本不提供任何质量保证及服务，如您或任何第三方因本软件转换为功能受限版本而遭受任何损失，中科方德不承担法律规定以外的责任。若您有继续使用本软件完整版本的需求，需另行付费获得本软件的合法授权。</p>
<p>11.6违约责任</p>
<p>11.6.1您（个人或单一实体）同意，如您（个人或单一实体）违反本协议的知识产权和保密义务，您应根据中科方德的选择按下列方法承担违约责任：（a）如您在本协议许可范围之外使用或允许他人使用本软件，中科方德除可要求您停止侵权外，还可按服务费总额的百分之二百（200%）向您收取附加使用费，附加使用费计算方式为：[附加使用费金额=违约数量×单位许可费×2]。违约数量为您在许可范围之外销售或以其他方式使用本软件的总量，该数量以中科方德单方面判断为准；或（b）应向中科方德支付伍拾（50）万元人民币的违约金，如您将中科方德的技术、商业秘密披露、提供给中科方德的竞争对手，则该违约金的数额应增加至壹佰（100）万人民币。</p>
<p>11.6.2如本协议约定的违约金不足以弥补给中科方德造成的损失，中科方德有权要求违约方进一步补偿。本协议所称损失应包括因违约行为所导致的中科方德的实际损失及可得利益损失，以及中科方德为处理违约事件所发生的包括调查、仲裁、诉讼、律师等法律费用在内的费用和开支。</p>
<p>11.6.3本协议规定应该偿付的违约金或赔偿金应当在明确责任后十（10）日内付清，否则按逾期付款处理。</p>
<p></p>
<p>第十二条 其他</p>
<p>本协议第十一条“特别提示”条款，效力优先于本协议的其他条款，当本协议第十一条“特别提示”条款与本协议的其他条款相抵触时，以本协议第十一条“特别提示”条款约定内容为准。</p>

        </body>
        </html>
    )";
        textEdit->setHtml(htmlText);
    }
    else
    {
        QString htmlText = R"(
        <html>
        <body>
<p style='text-align:center;'>NFS Software License and Service Agreement</p>
<p></p>
<p>Introduction</p>
<p>Welcome to use our software and service.</p>
<p>Please read and comply with this NFS Software License and Service Agreement (“Agreement”) to use the software(“NFS Software” or “Software”) of National Fundamental Software of China Co., Ltd. (中科方德软件有限公司) (“NFS”). Please read carefully and fully understand the content of the terms, especially the exemption or limitation of liability, as well as the separate agreement for access to or use of certain service, and choose to accept or not accept the terms. The terms and conditions of exemption or limitation of liability are highlighted in bold. By taking any step to download, install, use, login and etc. means that you have read, accept and agree to be bound by all the terms of this Agreement.</p>
<p>The Software is protected under the Copyright Law of PRC, international copyright treaties and other applicable intellectual property laws and treaties. For the Software, we only grant you a non-transferable and non-exclusive license, and you are not allowed to sell the Software. Please use the Software with the acknowledgement that you have fully read and understand all the terms in bold of this Agreement. Please contact us if you have any questions or doubts about this Agreement and/or the Software. We provide you with various channels and hope to provide you with satisfactory solutions:</p>
<p>1.Manual Customer Service: you can call our customer service hotline: 400-118-5115 (business day);</p>
<p>2.Dedicated Mail: We have set up a dedicated mailbox support@nfschina.com, you can contact us by sending emails.</p>
<p>This Agreement related to the Software is legally binding between you and NFS. The Software includes but not limited to computer software and may include carriers of computer software, electronic documents, or printed materials. Except as otherwise provided herein, the Software also includes our updated versions, corrections, additional components and supplements from time to time after you obtain the Software.</p>
<p></p>
<p>Contents of this Agreement</p>
<p>Article 1 Explanation of Terms</p>
<p>Article 2 Your Rights</p>
<p>Article 3 Your Obligations</p>
<p>Article 4 Replacement, Alteration and Upgrade of the Software</p>
<p>Article 5 Intellectual Property Declaration</p>
<p>Article 6 Third-Party Products and Services</p>
<p>Article 7 No Warranty</p>
<p>Article 8 Limitations of Our Liability</p>
<p>Article 9 Termination of License</p>
<p>Article 10 Applicable and Governing Laws and Terms Effects</p>
<p>Article 11 Special Notices</p>
<p>Article 12 Miscellaneous</p>
<p></p>
<p></p>
<p>Article 1 Explanation of Terms</p>
<p>In this document, unless the context otherwise requires, the following terms shall have</p>
<p>the meanings set out below.</p>
<p>1.1“NFS”, “We”, “Our” or “Us”: refers to National Fundamental Software of China Co., Ltd. and, where the context requires, its subsidiaries which we hold more than 50% of the shares directly or indirectly.</p>
<p>1.2“You” or “User”: means a user who is legally authorized to use the Software.</p>
<p>1.3“Legal Person or Other Organization”: refers to our agents, distributors, third-party partners, which purchase the Software license authorization and assign the Software to -users, including but not limited to legal persons, government authorities, companies, institutions and other organizations.</p>
<p>1.4“Mainland China”: only for the purposes of this Agreement, refers to the People’s Republic of China, excluding the Hong Kong Special Administrative Region, the Macao Special Administrative Region and Taiwan.</p>
<p></p>
<p>Article 2 Your Rights</p>
<p>2.1Under the premise that you legally obtain the authorization documents which you have the right to use the Software issued by us, and that you accept the terms of this Agreement and other agreements (if any) signed between you and NFS, we grant you the non-exclusive right to use the Software in Mainland China. You can:</p>
<p>2.1.1Install, use, display and run the Software on your computer.</p>
<p>2.1.2Make backup copies to prevent damage to the carrier. These backup copies shall not be provide to others in any unauthorized manner, and if you lose your license authorization to use the Software, please destroy the backup copies.</p>
<p>2.2We will provide you with the following support services about the Software:</p>
<p>2.2.1We expressly state that we will provide you with support services of the Software (“Support Services”) in our official website, user manuals or other electronic documents or printed materials (if any). We will provide such Support Services in accordance with the policies and plans described in these websites, documents and materials.</p>
<p>2.2.2Any software code (if any) provided to you as part of the Support Services (if any) shall be part of the Software and subject to the terms of this Agreement.</p>
<p></p>
<p>Article 3 Your Obligations</p>
<p>Unless permitted by law or our written consent, you shall be prohibited from the following acts in the process of using the software:</p>
<p>3.1Use, copy, modify, transfer or provide to third parties of the Software or any part thereof (including but not limited to the forms of paid or unpaid, alone or in conjunction with other software and hardware) beyond the terms set forth in this Agreement.</p>
<p>3.2Spin off the Software and use the components of the Software separately on more than one computer.</p>
<p>3.3Reverse engineer, decompile or disassemble the Software and attempt to access or take any other conduct in any way that obtains the source code of the Software. </p>
<p>3.4Rent, lend, sell, sub-license, distribute, modify, link, reprint, compile, publish, establish mirror sites, etc. of the content that we own intellectual property.</p>
<p>3.5Copy, modify, add, delete, hook up or create any derivative works of the Software or the data released into the memory of any terminal during the operation of the Software, the interaction data between the client and the server during the operation of the Software, and the system data necessary for the operation of the Software, including but not limited to the use of plug-ins, or third-party tools/services unauthorized to access the Software and related systems.</p>
<p>3.6Add, delete, or alter the functions or operational effects of the Software by modifying or falsifying instructions and data in the operation of the Software, or operate or disseminate the Software or methods used for the above purposes to the public, whether or not for commercial purposes.</p>
<p>3.7Login or use our Software and services through third-party software, plug-ins and systems not developed and authorized by NFS, or create, publish and disseminate the above tools.</p>
<p>3.8Implement or authorize the other party or a third party software to interfere with the Software and its components, modules and data.</p>
<p>3.9Remove the copyright marks contained on the Software and its copies.</p>
<p>3.10 Other unauthorized acts.</p>
<p></p>
<p>Article 4 Replacement, Alteration and Upgrade of the Software</p>
<p>4.1To improve user experience and service, we will strive to develop new functions of the Software, and from time to time to provide you with updates (these updates may take the form of software replacement, alteration, version upgrade, etc.).</p>
<p>4.2If you enable the “automatic download and installation of upgrade packages, no need to give me any prompts” function for the Software, we will have the right to automatically install the updated version of the Software on your device without special and additional notice. If you do not want the Software to automatically install updates, please do not enable the function or turn off the function when it is enabled.</p>
<p>4.3We will provide you with an updated version of the Software to replace, modify or upgrade at any time and announce you in advance (including but not limited to the pop-up page of the Software client, the display after you click the “Check for Updates” button of the Software client or the official website of the Software).</p>
<p>4.4After the release of the Software update, we may not provide support services to the old version in order to ensure your experience and service, we recommend that you check and download the latest version of the Software at any time.</p>
<p>4.5You may choose to accept (including all the scenarios where you have set your computer or device to automatically update the Software) at your own discretion the updated version of the Software provided to you by us to replace, modify or update the Software. Once you download an updated version of the Software, it means that (a) you accept the updated version of the Software and you hereby acknowledge that the updated version does not necessarily include all the features of previous versions (versions prior to the publishing of the replacement, alteration or upgrade version). We reserve the right to unilaterally alter or restrict some functions and effects of the Software for our commercial purposes; and (b) you undertake to meet and agree all the following conditions of use for the updated Software version: (i) the updated version is subject to the terms of this Agreement, and if this Agreement is replaced by another agreement of the updated version, the updated version is subject to that agreement; (ii) your right to use an previous version of the Software will be terminated.</p>
<p></p>
<p>Article 5 Intellectual Property Declaration</p>
<p>5.1We own the intellectual property rights of the Software. All copyrights, trademark (application) rights, patent (application) rights, trade secrets and other intellectual property rights of the Software, as well as all information related to the Software (including but not limited to any source code, text, pictures, audio, video, charts, interface design, layout framework, relevant data or electronic documents and additional programs contained in the Software, etc.), the affiliate electronic documents or printed materials and any copies of the Software, etc., are protected under the laws and regulations of PRC and the corresponding international treaties, etc. We own the above intellectual property rights, except for the rights owned by others in accordance with the law.</p>
<p>5.2Without written consent by us or the relevant right holders, except for making backup copies in accordance with this Agreement, you shall not implement, utilize or transfer the above intellectual property rights by yourself to any third party for any commercial or non-commercial purposes. If you make a backup copy in accordance with this Agreement, please copy the copyright notice for each copy.</p>
<p>5.3Unless otherwise provided herein, this Agreement does not grant you any ownership or intellectual property rights of the Software. In addition to the rights expressly granted herein, we do not grant you (an individual or a single entity) any other license, whether express or implied. We do not authorize you (an individual or a single entity) to carry out any subsequent development and improvement of the Software. If necessary, such subsequent development and improvement shall be carried out with our written consent and the rights and interests of the results produced shall belong to NFS.</p>
<p>5.4The intellectual property rights will not be transferred even if all content uploaded or published by you when using the Software and services. Meanwhile, you shall understand and agree that we will use the specific public non-confidential content you publish for the purpose of the product within the scope permitted by law, including but not limited to storing, providing access to relevant users and reusing.</p>
<p></p>
<p>Article 6 Third-Party Products and Services</p>
<p>6.1The Software may use third-party software or technology (including open source code and common domain code, the same below).</p>
<p>6.1.1We will display, in accordance with relevant laws and regulations or agreements, the relevant agreements or other documents in the form of attachments to this Agreement, packaging in a specific folder of the Software installation package, etc., which may be expressed in the form of “software use license agreement”, “authorizing agreement”, “open source code license”, “license agreement” or other forms of agreements, documents and web pages to express that they are inseparable parts of this Agreement and have the same legal effect. You should comply with these requirements. If you fail to do so, the third parties or government authorities may file a lawsuit, fine or impose other sanctions against you, and require our assistance. You shall bear the legal liabilities on your own.</p>
<p>6.1.2The scope of use and limitations of such open source packages as part of legally licensed Software, apply to this Agreement. If such open source packages have their own separate end user license agreements, the scope of authorization and rights restrictions shall also apply to their separate end user license agreements. Given that this Agreement may be inconsistent with the terms of the open source package’s separate end user license agreement, it is specifically noted hereafter: when there is an inconsistency between the two license agreements, the more restrictive terms shall prevail.</p>
<p>6.1.3If any dispute arise from the third-party software or technology when using the Software, the third party shall be responsible for resolving it. We do not assume any guarantee and responsibility for the third-party software or technology, and we do not provide customer service support for them. If you need support, please contact the third party.</p>
<p>6.2When you use the Software or request us to provide specific services, the Software may invoke third party systems or support the use or access through a third party. The results of use or access are provided by the third party. We do not guarantee the security, accuracy, effectiveness and other uncertain risks of third parties. If any disputes and damages arise therefrom, we do not assume any responsibility. We have used industry-standard security measures to protect personal information provided by third-party developers and/or protect users against unauthorized access, public disclosure, use, modification, destruction, leak or loss of data. We also strive to require these entities to take protective measures for your personal information. We recommend that you contact them for details about their privacy policies.</p>
<p>6.3Third-party service providers may provide products or services through the Software. They may collect, use and store your relevant data or information during this process. We strictly require them to comply with the provisions of relevant laws and regulations, obtain your explicit consent in advance, take necessary data protection measures, use your data reasonably for the purpose of products or services, provide you with a way to modify or delete your own data, and delete all data when you stop the service, etc., in order to protect your data and privacy from infringement to the greatest extent possible by the relevant signed agreements, relevant rules and reasonable product process design. You shall fully understand the terms and policies of the third party products or services before accepting or using. If you find any violation of laws and regulations, you can submit a complaint to us, and we will verify and offer assistance.</p>
<p>6.4You understand and agree that we are entitled to use the Software for commercial purposes, including but not limited to developing and using some services of the Software for the promotion of third parties, etc. We hereby undertake to protect your personal information in accordance with this Agreement. You can also choose to block and refuse to receive relevant promotional information according to the system settings.</p>
<p></p>
<p>Article 7 No Warranty</p>
<p>7.1The express warranties described in this Agreement shall be the entirety of warranties. To the fullest extent permitted by applicable law, the Software and Support Services (if any) by us and our suppliers are provided “as-is and including of all defects”, without warranty or guarantee of any kind, whether express or implied: including but not limited to, warranties of quality, performance, merchantability or fitness of the Software for special application purposes, accuracy of responses, completeness of results, absence of vulnerabilities or defects or non-infringement of the rights of third parties.</p>
<p>7.2The Software can be installed and used normally under certain conditions and usual standards. Except as otherwise provided herein, we do not guarantee that the Software and its functions are suitable for the user’s equipment. We do not guarantee that the functions or services contained in the Software will meet your requirements. We do not guarantee that the Software and services will be free from any errors or will provide continuous and lasting services. We do not guarantee that the Software will be compatible with any third-party software or third-party services.</p>
<p>7.3We do not warrant or guarantee that the use of services, software or hardware will not be interrupted. We do not warrant or guarantee that the use of services, software or hardware will comply with regulatory requirements. We do not warrant or guarantee that the use of services, software or hardware will be error-free. We do not warrant or guarantee that we will correct all software errors.</p>
<p></p>
<p>Article 8 Limitations of Our Liability</p>
<p>8.1To the fullest extent permitted by applicable law, we and our suppliers shall not be liable for any indirect, accidental, direct, special, punitive or other damages (including but not limited to damages caused by property damages, damages caused by loss of profits, loss of data, business interruption, computer paralysis or malfunction, loss of business information, damages caused by negligence) unless we or our suppliers cause the damage intentionally or by gross negligence.</p>
<p>8.2We shall not be liable for your failure of installation, use and uninstallation and/or any problem arising due to your subjective and objective reasons, regardless of the cause of damage and connection with the Software; we shall not be liable for the problem of using the Software caused by accidents, abuse, incorrect use, and unauthorized modification.</p>
<p></p>
<p>Article 9 Termination of License</p>
<p>If you breach any of the terms in this Agreement, we may immediately terminate this Agreement. At that time please immediately uninstall the Software, destroy the related electronic document or printed materials, and compensate for our losses due to your violation of this Agreement.</p>
<p></p>
<p>Article 10 Applicable and Governing Laws and Terms Effects</p>
<p>10.1The formation, implementation and interpretation of this Agreement and the resolution of disputes arising hereunder shall be governed by the laws of the Mainland China.</p>
<p>10.2We agree to use reasonable efforts to resolve any disputes, controversies and claims arising out of or relating to this Agreement through consultation. In the event that we are unable to resolve a dispute, either party shall be referred to and finally resolved by the People’s Court with jurisdiction over our domicile.</p>
<p>10.3The terms and provisions of this Agreement are severable. If any provision of this Agreement is found to be invalid or unenforceable, then such provision severed from the remainder of this Agreement, the other provisions shall remain in full force and effect.</p>
<p></p>
<p>Article 11 Special Notices</p>
<p>11.1Please read carefully the Privacy Policy of the Software, namely “NFS Privacy Policy”. We recommend that you pay attention to updates or changes to the Software, in order to learn the changes to the above policy and the modified content.</p>
<p>11.2Please be aware that if you do not pay additionally to purchase our value-added services or do not pay separately to purchase our plug-ins with specific functions, some functions of the Software will be fully or partially limited. We will do our best to provide you with more and better functions through the Software. Although we provide you with the existing functions of the Software, we may charge you for fees in the future for all or part of any new, replaced or additional functions of the Software or any updated version (“Paid Functions”). The specific charging policy shall be subject to our announcement at that time when you may choose whether to accept the Paid Functions of the Software. If you choose to accept, you shall pay the relevant fees in accordance with our charging policy. If we have any affiliate agreements or terms for the Paid Functions of the Software, you must agree to such agreements or terms prior accepting. Such agreements or terms will be deemed to supplement the contents of this Agreement. In case of conflict, such agreements or terms will prevail.</p>
<p>11.3We also remind you that the terms of this Agreement may change from time to time (including but not limited to modifying, altering, replacing, adding, deleting, etc. to the existing terms of this Agreement directly on the basis of this Agreement or in additional agreement). If this Agreement is modified, a copy of the modification or the entire contents of this Agreement after the modification or a link to a URL capable of displaying the foregoing content will be attached to the installation package of any replacement version or altered version or updated version of the Software. Once you successfully install such replacement, alteration or updated version of the installation package, we regard that you have read and you fully understand and agree to the entire contents of this Agreement after the modification. When you need to log in to the web page to read the contents or modifications of this Agreement displayed, please ensure that you are in a state of networking and can fully read all the terms or the modifications of this Agreement. You shall not refuse to endorse this Agreement or the changes to it on the ground that you have not actually read (including, without limitation, because you cannot connect to the Internet or have not actually logged into the relevant web pages and have not read this Agreement or the changes to this Agreement).</p>
<p>11.4Before you or the legal person or other organization that assigned you to use the Software obtain the legal license to use the Software in any of the following ways, even if you have read and agreed to be bound by the terms of this Agreement, you still have no right to install the Software on your computer or use the Software in any other way: (a) obtain our legal license to use the Software directly; (b) obtain the legal authorization to use the Software through dealers, distributors, agents, retailers, app stores, etc. which we authorized; (c) obtain a lawful license to use the Software from a third party authorized to sub-license.</p>
<p>Regardless of the way you obtain the legal license to use the Software, you must install and use the Software strictly accordance with the written agreement (if any) signed between you or the legal person or other organization assigned you to use the Software and us, the authorization document (if any) we issued to you or the legal person or other organization assigned to you to use the Software to prove that you have the right to use the Software, and the scope of the license agreed in this Agreement, the license term (if any) and the purpose of authorized use. If the above documents are inconsistent with the content agreed in this Agreement, the order of precedence is: written agreement (if any) signed between you or the legal person or other organization assigned to you to use the Software and us, the authorization document (if any) we issued to you or the legal person or other organization assigned to you to use the Software to prove that you have the right to use the Software, and this Agreement.</p>
<p>If you or the legal person or other organization assigned you to use the Software obtain the legal authorization to use the Software through the dealers, distributors, agents, retailers, application stores, etc. authorized by us, and the relevant parties' commitments to the licensing policies/period, service content/period, etc. of the Software have not been confirmed by our written consent, such agreements cannot bind us.</p>
<p>11.5If you obtain the Software with an “Authorization Period”, after the expiration of the “Authorization Period”, we are entitled at our own discretion to terminate the Software license or convert the Software into a function limited version (the function limited version refers to the Software that some functions are limited). The specific functions of the Software will be limited by our discretion at that time and we have the right to change and adjust at any time. If we decide to terminate the authorization of the Software, from the date of termination of the Software license, you shall not continue to use the Software in any way unless you or the legal person or other organization assigned you to use the Software separately pays to obtain the legal authorization; if we decide to convert the Software into a functional limited version, we do not provide any quality assurance and service for this function limited version. If you or any third party suffers any loss due to the conversion of the Software to a function limited version, we do not assume any liability other than those stipulated by law. Where you want to use full version of the Software, you must separately pay for the legal authorization.</p>
<p>11.6Liability for Breach</p>
<p>11.6.1You (an individual or an entity) agree that if you (an individual or a single entity) breach the intellectual property rights and confidentiality obligations of this Agreement, you shall be liable for breach of contract in the following manner at our option: (a) if you use or allow others to use the Software beyond the scope of this Agreement, we may, in addition to requiring you to stop the infringement, charge you a surcharge of 200% of the total amount of the service fee, which is calculated as: [Amount of Additional Usage Fee = Number of breach× Unit license fee ×2]. The number of breach is the total amount of the Software you sell or otherwise use beyond the scope of the license, which is subject to our sole judgment; or (b) you shall pay RMB 500,000 of liquidated damages to us, and if you disclose and provide our technology and trade secrets to our competitors the amount of such liquidated damages shall be increased to RMB 1,000,000.</p>
<p>11.6.2If the liquidated damages stipulated in this Agreement are insufficient to compensate for the losses caused to us, we have the right to require further compensation from the breaching party. The losses referred to in this Agreement shall include the actual losses and our available benefits caused by the breach of contract, as well as the costs and expenses incurred to deal with the event of breach, including investigation, arbitration, litigation, lawyers and other legal fees.</p>
<p>11.6.3Liquidated damages or compensations under this Agreement shall be paid within ten (10) days after the clarification of liability, otherwise they shall be treated as late payments.</p>
<p></p>
<p>Article 12 Miscellaneous</p>
<p>12.1 The “Special Notices” under Article 11 of this Agreement shall take precedence over other terms of this Agreement. If the “Special Notices” under Article 11 conflicts with other terms of this Agreement, the content of the “Special Notices” under Article 11 of this Agreement shall prevail.</p>
<p>12.2If there is any inconsistency between the English version of this document and its Chinese translation, the Chinese version of this document shall prevail.</p>
        </body>
        </html>
        )";
        textEdit->setHtml(htmlText);
    }

}

AgreementWidget::~AgreementWidget()
{

}

void AgreementWidget::load()
{

}

void AgreementWidget::save()
{

}

void AgreementWidget::defaults()
{

}


#include "agreementwidget.moc"
